/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "学校测试",TableName = "Schools")]
    public class Schools:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateTime")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateBy")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string CreateBy { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UpdateTime")]
       [Column(TypeName="datetime")]
       public DateTime? UpdateTime { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UpdateBy")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string UpdateBy { get; set; }

       /// <summary>
       ///学校编码
       /// </summary>
       [Display(Name ="学校编码")]
       [MaxLength(3)]
       [Column(TypeName="nvarchar(3)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string SchoolCode { get; set; }

       /// <summary>
       ///学校名称
       /// </summary>
       [Display(Name ="学校名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string SchoolName { get; set; }

       /// <summary>
       ///学校类型
       /// </summary>
       [Display(Name ="学校类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int SchoolType { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Remark { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="Id")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       
    }
}